#!/bin/bash
FILENAME=$1
FILESIZE=$(wc -c < $FILENAME)
#FILESIZE=$(stat -f%z "$FILENAME")
if [ "$FILESIZE" = "" ]; then
	FILESIZE=0
fi 

echo $FILESIZE 